Optimal. Leaf size=69 \[ \frac {(A b-a B) (a+b x) \left (a^2+2 a b x+b^2 x^2\right )^{5/2}}{6 b^2}+\frac {B \left (a^2+2 a b x+b^2 x^2\right )^{7/2}}{7 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {654, 623}
\begin {gather*} \frac {(a+b x) \left (a^2+2 a b x+b^2 x^2\right )^{5/2} (A b-a B)}{6 b^2}+\frac {B \left (a^2+2 a b x+b^2 x^2\right )^{7/2}}{7 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 623
Rule 654
Rubi steps
\begin {align*} \int (A+B x) \left (a^2+2 a b x+b^2 x^2\right )^{5/2} \, dx &=\frac {B \left (a^2+2 a b x+b^2 x^2\right )^{7/2}}{7 b^2}+\frac {\left (2 A b^2-2 a b B\right ) \int \left (a^2+2 a b x+b^2 x^2\right )^{5/2} \, dx}{2 b^2}\\ &=\frac {(A b-a B) (a+b x) \left (a^2+2 a b x+b^2 x^2\right )^{5/2}}{6 b^2}+\frac {B \left (a^2+2 a b x+b^2 x^2\right )^{7/2}}{7 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 121, normalized size = 1.75 \begin {gather*} \frac {x \sqrt {(a+b x)^2} \left (21 a^5 (2 A+B x)+35 a^4 b x (3 A+2 B x)+35 a^3 b^2 x^2 (4 A+3 B x)+21 a^2 b^3 x^3 (5 A+4 B x)+7 a b^4 x^4 (6 A+5 B x)+b^5 x^5 (7 A+6 B x)\right )}{42 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(137\) vs.
\(2(61)=122\).
time = 0.71, size = 138, normalized size = 2.00
method | result | size |
gosper | \(\frac {x \left (6 b^{5} B \,x^{6}+7 A \,b^{5} x^{5}+35 B a \,b^{4} x^{5}+42 A a \,b^{4} x^{4}+84 B \,a^{2} b^{3} x^{4}+105 A \,a^{2} b^{3} x^{3}+105 B \,a^{3} b^{2} x^{3}+140 A \,a^{3} b^{2} x^{2}+70 B \,a^{4} b \,x^{2}+105 a^{4} b A x +21 a^{5} B x +42 a^{5} A \right ) \left (\left (b x +a \right )^{2}\right )^{\frac {5}{2}}}{42 \left (b x +a \right )^{5}}\) | \(138\) |
default | \(\frac {x \left (6 b^{5} B \,x^{6}+7 A \,b^{5} x^{5}+35 B a \,b^{4} x^{5}+42 A a \,b^{4} x^{4}+84 B \,a^{2} b^{3} x^{4}+105 A \,a^{2} b^{3} x^{3}+105 B \,a^{3} b^{2} x^{3}+140 A \,a^{3} b^{2} x^{2}+70 B \,a^{4} b \,x^{2}+105 a^{4} b A x +21 a^{5} B x +42 a^{5} A \right ) \left (\left (b x +a \right )^{2}\right )^{\frac {5}{2}}}{42 \left (b x +a \right )^{5}}\) | \(138\) |
risch | \(\frac {\sqrt {\left (b x +a \right )^{2}}\, b^{5} B \,x^{7}}{7 b x +7 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (b^{5} A +5 a \,b^{4} B \right ) x^{6}}{6 b x +6 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (5 a \,b^{4} A +10 a^{2} b^{3} B \right ) x^{5}}{5 b x +5 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (10 a^{2} b^{3} A +10 a^{3} b^{2} B \right ) x^{4}}{4 b x +4 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (10 a^{3} b^{2} A +5 a^{4} b B \right ) x^{3}}{3 b x +3 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (5 a^{4} b A +a^{5} B \right ) x^{2}}{2 b x +2 a}+\frac {\sqrt {\left (b x +a \right )^{2}}\, a^{5} A x}{b x +a}\) | \(233\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 125 vs.
\(2 (61) = 122\).
time = 0.29, size = 125, normalized size = 1.81 \begin {gather*} \frac {1}{6} \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A x - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B a x}{6 \, b} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B a^{2}}{6 \, b^{2}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A a}{6 \, b} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {7}{2}} B}{7 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.49, size = 115, normalized size = 1.67 \begin {gather*} \frac {1}{7} \, B b^{5} x^{7} + A a^{5} x + \frac {1}{6} \, {\left (5 \, B a b^{4} + A b^{5}\right )} x^{6} + {\left (2 \, B a^{2} b^{3} + A a b^{4}\right )} x^{5} + \frac {5}{2} \, {\left (B a^{3} b^{2} + A a^{2} b^{3}\right )} x^{4} + \frac {5}{3} \, {\left (B a^{4} b + 2 \, A a^{3} b^{2}\right )} x^{3} + \frac {1}{2} \, {\left (B a^{5} + 5 \, A a^{4} b\right )} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (A + B x\right ) \left (\left (a + b x\right )^{2}\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 217 vs.
\(2 (61) = 122\).
time = 1.33, size = 217, normalized size = 3.14 \begin {gather*} \frac {1}{7} \, B b^{5} x^{7} \mathrm {sgn}\left (b x + a\right ) + \frac {5}{6} \, B a b^{4} x^{6} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{6} \, A b^{5} x^{6} \mathrm {sgn}\left (b x + a\right ) + 2 \, B a^{2} b^{3} x^{5} \mathrm {sgn}\left (b x + a\right ) + A a b^{4} x^{5} \mathrm {sgn}\left (b x + a\right ) + \frac {5}{2} \, B a^{3} b^{2} x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {5}{2} \, A a^{2} b^{3} x^{4} \mathrm {sgn}\left (b x + a\right ) + \frac {5}{3} \, B a^{4} b x^{3} \mathrm {sgn}\left (b x + a\right ) + \frac {10}{3} \, A a^{3} b^{2} x^{3} \mathrm {sgn}\left (b x + a\right ) + \frac {1}{2} \, B a^{5} x^{2} \mathrm {sgn}\left (b x + a\right ) + \frac {5}{2} \, A a^{4} b x^{2} \mathrm {sgn}\left (b x + a\right ) + A a^{5} x \mathrm {sgn}\left (b x + a\right ) - \frac {{\left (B a^{7} - 7 \, A a^{6} b\right )} \mathrm {sgn}\left (b x + a\right )}{42 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (A+B\,x\right )\,{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________